package com.dlc.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dlc.shop.bean.model.ProdParameter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品参数mapper
 * @author Citrus
 * @date 2021-11-01 16:50:52
 */
public interface ProdParameterMapper extends BaseMapper<ProdParameter> {
    /**
     * 根据商品id删除商品参数
     * @param prodId
     */
    void removeByProdId(@Param("prodId") Long prodId);

    /**
     * 根据商品id查询商品参数
     * @param prodId
     * @return
     */
    List<ProdParameter> listProdParameterByProdId(@Param("prodId") Long prodId);
}
